package dialogue;

import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Toolkit;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;

public class FenTableFactures extends JFrame {

	private JPanel contentPane;
	private JLabel jLab_Fond;
	private JLabel jLabel_Imprimer;
	private JLabel jLab_Apercu;
	private JLabel jLab_Exporter;
	private JLabel jLable_Retour;
	private JScrollPane scrollPane;
	private JTable table;
	private JLabel jLab_RechercheFact;
	private JTextField jTxT_Recherche;
	private JLabel jLab_Titre;
	private JLabel jLab_Supprimer;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FenTableFactures frame = new FenTableFactures();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FenTableFactures() {
		setIconImage(Toolkit.getDefaultToolkit().getImage(FenTableFactures.class.getResource("/images/logoEclipse.png")));
		setResizable(false);
		setSize(920,510);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		contentPane.add(getJLab_Supprimer());
		contentPane.add(getJLab_Titre());
		contentPane.add(getJTxT_Recherche());
		contentPane.add(getJLab_RechercheFact());
		contentPane.add(getScrollPane());
		contentPane.add(getJLable_Retour());
		contentPane.add(getJLab_Exporter());
		contentPane.add(getJLab_Apercu());
		contentPane.add(getJLabel_Imprimer());
		contentPane.add(getJLab_Fond());
	}

	private JLabel getJLab_Fond() {
		if (jLab_Fond == null) {
			jLab_Fond = new JLabel("");
			jLab_Fond.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/fondGeneral.jpg")));
			jLab_Fond.setBounds(0, 0, 914, 482);
		}
		return jLab_Fond;
	}
	private JLabel getJLabel_Imprimer() {
		if (jLabel_Imprimer == null) {
			jLabel_Imprimer = new JLabel("Imprimer la facture");
			jLabel_Imprimer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
			jLabel_Imprimer.setForeground(Color.WHITE);
			jLabel_Imprimer.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLabel_Imprimer.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/imprimer2.png")));
			jLabel_Imprimer.setBounds(30, 38, 200, 47);
		}
		return jLabel_Imprimer;
	}
	private JLabel getJLab_Apercu() {
		if (jLab_Apercu == null) {
			jLab_Apercu = new JLabel("Aper\u00E7u de la facture");
			jLab_Apercu.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/apercu3.png")));
			jLab_Apercu.setForeground(Color.WHITE);
			jLab_Apercu.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Apercu.setBounds(30, 107, 200, 47);
		}
		return jLab_Apercu;
	}
	private JLabel getJLab_Exporter() {
		if (jLab_Exporter == null) {
			jLab_Exporter = new JLabel("Exporter la facture");
			jLab_Exporter.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/export3.png")));
			jLab_Exporter.setForeground(Color.WHITE);
			jLab_Exporter.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Exporter.setBounds(30, 192, 200, 47);
		}
		return jLab_Exporter;
	}
	private JLabel getJLable_Retour() {
		if (jLable_Retour == null) {
			jLable_Retour = new JLabel("Retour au menu");
			jLable_Retour.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/retour.png")));
			jLable_Retour.setForeground(Color.WHITE);
			jLable_Retour.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLable_Retour.setBounds(30, 412, 200, 47);
		}
		return jLable_Retour;
	}
	private JScrollPane getScrollPane() {
		if (scrollPane == null) {
			scrollPane = new JScrollPane();
			scrollPane.setBounds(256, 65, 648, 347);
			scrollPane.setViewportView(getTable());
		}
		return scrollPane;
	}
	private JTable getTable() {
		if (table == null) {
			table = new JTable();
		}
		return table;
	}
	private JLabel getJLab_RechercheFact() {
		if (jLab_RechercheFact == null) {
			jLab_RechercheFact = new JLabel("Rechercher une facture");
			jLab_RechercheFact.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/chercheAssiste.png")));
			jLab_RechercheFact.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jLab_RechercheFact.setBounds(553, 436, 209, 35);
		}
		return jLab_RechercheFact;
	}
	private JTextField getJTxT_Recherche() {
		if (jTxT_Recherche == null) {
			jTxT_Recherche = new JTextField();
			jTxT_Recherche.setFont(new Font("Segoe UI", Font.PLAIN, 12));
			jTxT_Recherche.setBounds(753, 443, 151, 20);
			jTxT_Recherche.setForeground(new Color(26, 88, 131));
			jTxT_Recherche.setColumns(10);
		}
		return jTxT_Recherche;
	}
	private JLabel getJLab_Titre() {
		if (jLab_Titre == null) {
			jLab_Titre = new JLabel("GESTION DU FICHIER DES FACTURES");
			jLab_Titre.setFont(new Font("Tahoma", Font.PLAIN, 18));
			jLab_Titre.setBounds(261, 21, 580, 14);
		}
		return jLab_Titre;
	}
	private JLabel getJLab_Supprimer() {
		if (jLab_Supprimer == null) {
			jLab_Supprimer = new JLabel("Supprimer une facture");
			jLab_Supprimer.setForeground(Color.WHITE);
			jLab_Supprimer.setIcon(new ImageIcon(FenTableFactures.class.getResource("/images/gestion/supprimer2.png")));
			jLab_Supprimer.setFont(new Font("Segoe UI", Font.BOLD, 12));
			jLab_Supprimer.setBounds(30, 262, 200, 47);
		}
		return jLab_Supprimer;
	}
}
